package org.gd.hellojaxb.jmeter;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-10-11 17:26
 */
@XmlRootElement(name = "TestPlan")
@XmlAccessorType(XmlAccessType.FIELD)
public class TestPlan {

    @XmlAttribute(name = "guiclass")
    private String guiClass;
    @XmlAttribute(name = "testclass")
    private String testClass;
    @XmlAttribute(name = "testname")
    private String testName;
    @XmlAttribute(name = "enabled")
    private Boolean enabled;

    @XmlElement(name = "boolProp")
    private List<BooleanProperty> booleanProperties;
    @XmlElement(name = "stringProp")
    private List<StringProperty> stringProperties;
    @XmlElement(name = "elementProp")
    private List<ElementProperty> elementProperties;

    public TestPlan() {
        booleanProperties = new ArrayList<>();
        stringProperties = new ArrayList<>();
        elementProperties = new ArrayList<>();
    }

    public String getGuiClass() {
        return guiClass;
    }

    public void setGuiClass(String guiClass) {
        this.guiClass = guiClass;
    }

    public String getTestClass() {
        return testClass;
    }

    public void setTestClass(String testClass) {
        this.testClass = testClass;
    }

    public String getTestName() {
        return testName;
    }

    public void setTestName(String testName) {
        this.testName = testName;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public List<BooleanProperty> getBooleanProperties() {
        return booleanProperties;
    }

    public void setBooleanProperties(List<BooleanProperty> booleanProperties) {
        this.booleanProperties = booleanProperties;
    }

    public List<StringProperty> getStringProperties() {
        return stringProperties;
    }

    public void setStringProperties(List<StringProperty> stringProperties) {
        this.stringProperties = stringProperties;
    }

    public List<ElementProperty> getElementProperties() {
        return elementProperties;
    }

    public void setElementProperties(List<ElementProperty> elementProperties) {
        this.elementProperties = elementProperties;
    }
}
